package com.cyg.system.persistence.mapper;

import java.util.List;
import java.util.Map;

public interface BaseMapper <T,K>{
	
    int deleteByPrimaryKey(K pairsId);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(K recordId);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKeyWithBLOBs(T record);

    int updateByPrimaryKey(T record);
    
    List<T> selectByPrameters(Map<String, Object> params);

    Integer selectCountByPrameters(Map<String, Object> params);

}
